package com.thinkit.bigdata.web.service.statistics;

import com.thinkit.bigdata.web.model.result.HtmlResult;
import org.elasticsearch.index.query.BoolQueryBuilder;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;

public interface TagStatisticsServer {

    Map<String, List<Map<String, String>>> getTagQuery(HttpServletRequest request, String type) throws IOException;

    HtmlResult getTagCount(HttpServletRequest request);

    HtmlResult searchData(HttpServletRequest request) throws IOException, InvocationTargetException, IllegalAccessException;

    BoolQueryBuilder getQuery(String logTxt, HttpServletRequest request);
}
